class Ogxcurriculum < ActiveRecord::Base
	belongs_to :ogxtrainee, :dependent => :destroy

	# Verifica si algun tag de 'search_tags' esta 
	# en la lista de tags asociados al CV.
	def has_tags(search_tags)
		for tag in self.tags.split(' ')
			if search_tags.include?(tag) then 
				return true
			end
		end
		return false
	end
	
end
